<template>
	<view>
		<view style="width: 70%; margin: 0 auto; text-align: center;">
			<image src="../static/pay.png"></image>
			<view style="font-weight: bold;font-size: 34rpx;margin-bottom: 120rpx;">支付成功</view>
			<view v-if='types==1'>
				<button @tap="cha">查看办理记录</button>
				<button @tap="jixu">继续购买</button>
			</view>
			<view v-else>
				<button @click="toHonePage()">返回</button>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				types: 1
			}
		},
		onLoad(option) {
			this.types = option.types
		},
		methods: {
			toHonePage(){
				uni.reLaunch({
				    url: '/pages/study/study'
				});
			},
			//继续购买
			jixu() {
				uni.navigateBack({
					delta: 1
				});
			},
			//查看办理记录
			cha() {
				// uni.navigateTo({
				// 	url: '/pagesA/particulars/particulars'
				// })
				this.$mHelper.to('')
				uni.redirectTo({
						url: '/pagesA/particulars/particulars'
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	image {
		width: 269rpx;
		height: 269rpx;
		margin: 100rpx 0;
	}

	button {
		background: #2D9485;
		height: 96rpx;
		color: #FFFFFF;
		margin-bottom: 30rpx;
	}
</style>
